package mqpaydemo.paydemo.pay.response;

/**
 * @Description:
 * @Author: liujinsheng
 * @Date: 2021/9/10.
 */
public interface BaseEnum {
    int getCode();

    String getMsg();

    default Boolean codeEquals(Integer code) {
        return code == null ? Boolean.FALSE : this.getCode() == code;
    }

    default Boolean codeNotEquals(Integer code) {
        return code == null ? Boolean.TRUE : this.getCode() != code;
    }
}
